@extends('layouts.default')
@section('seo-title', $seo['seo_title'])
@section('seo-description',$seo['seo_description'])
@section('seo-keywords',$seo['seo_keyword'])
@section('company',$all_model['abbreviation'])
@section('content')
    @include('layouts._headerElse')
    <section class="ftco-section-2 mb-5 pb-5">
        <div class="container-fluid">
            <div class="row d-flex no-gutters">
                <div class="col-md-6 d-flex align-items-center heading-section ftco-animate bg-light">
                    <div class="col-md-9">
                        <div class="p-5">
                            <h2 class="mb-4">{{$all_model['all_model_title']}}</h2>
                            <p>{{$all_model['all_model_desc']}} </p>
                        </div>
                    </div>
                </div>
                @foreach($product as $item)
                    <div class="col-md-3 model-entry ftco-animate">
                        <div class="model-img" style="background-image: url({{$url .'/'.$item['image']}});">
                            <div class="name">
                                <h3><a href="{{route('getModelDetails', [$item['id']])}}">{{$item['title']}}</a></h3>
                            </div>
                            <div class="text">
                                <h3><a href="{{route('getModelDetails', [$item['id']])}}">{{$item['title']}}</a></h3>
                                <div class="d-flex models-info">
                                    <div class="pr-md-3">
                                        <p>Height</p>
                                        <span>{{$item['height']}}</span>
                                    </div>
                                    <div class="pr-md-3">
                                        <p>Bust</p>
                                        <span>{{$item['bust']}}</span>
                                    </div>
                                    <div class="pr-md-3">
                                        <p>Waist</p>
                                        <span>{{$item['waist']}}</span>
                                    </div>
                                    <div class="pr-md-3">
                                        <p>Hips</p>
                                        <span>{{$item['hips']}}</span>
                                    </div>
                                    <div class="pr-md-3">
                                        <p>Shoe</p>
                                        <span>{{$item['shoe']}}</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                @endforeach
            </div>
            <div class="row no-gutters mt-5">
                <div class="col text-center">
                    <div class="block-27">
                        <ul>
                            <li><a href="{{ $product->url(1) }} "
                                   style="{{ ($product->currentPage() == 1) ? ' pointer-events: none;' : '' }}">&lt;</a>
                            </li>
                            @for ($i = 1; $i <= $product->lastPage(); $i++)
                                <li class="{{ ($product->currentPage() == $i) ? ' active' : '' }}"><span>{{ $i }}</span>
                                </li>
                            @endfor
                            <li><a href="{{ $product->url($product->currentPage()+1) }}  "
                                   style="{{ ($product->currentPage() == $product->lastPage()) ? ' pointer-events: none;' : '' }}   ">&gt;</a>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </section>
@endsection
